package com.example.xpvideo.service.serviceImpl;

import cn.hutool.core.date.DateTime;
import com.example.xpvideo.service.TimeService;
import org.springframework.stereotype.Service;

@Service
public class TimeServcieImpl implements TimeService {
    @Override
    public int getTime(){
        DateTime dateTime = new DateTime();

        int time = (int) (dateTime.getTime() / 1000);

        return time;
    }
}
